package cn.com.joycode.nimble.core.error;


import cn.com.joycode.nimble.core.utils.ObjectMapperUtil;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public class NbErrorObject implements NbError {

    private String code;

    private String msg;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return ObjectMapperUtil.toJsonString(this);
    }
}
